package org.inspursc.s0517.health.common.service;

import org.inspursc.s0517.health.common.entity.SysLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author yuchu
 */
public interface SysLogService {

    /**
     * 保存
     * @param log
     * @return
     */
    SysLog save(SysLog log);

    /**
     * 根据Id获取
     * @param id
     * @return
     */
    SysLog findOne(Integer id);

    /**
     * 根据Id删除
     * @param id
     * @return
     */
    boolean deleteById(Integer id);

    /**
     * 分页查询
     * @param pageable
     * @return
     */
    Page<SysLog> findAll(Pageable pageable);

}
